/**
 * Free Uch
 *
 * @category   FreeUch
 * @copyright  Copyright 2009 lordharrdlee(http://www.lordharrdlee.cn)
 * @author     lordharrdlee<lordharrdlee@gmail.com>
 * @version    $Id: hotel.js 10 2010-01-14 10:31:01Z lordharrdlee $
 */
function _g(n){
    return document.getElementById(n)
}
function xmlHttp(Url,xmlBack){
    var xObj=null;
    try{
        xObj=new ActiveXObject("MSXML2.XMLHTTP")
    }catch(e){
        try{
            xObj=new ActiveXObject("Microsoft.XMLHTTP")
        }catch(e2){
            try{
                xObj=new XMLHttpRequest()
            }catch(e){}
        }
    };

    with(xObj){
        open("get",Url, true);
        onreadystatechange=function(){
            if(readyState==4&&status==200){
                xmlBack(responseText)
            }
        };

        send(null)
        }
};
function v(id){
    xmlHttp('freeuch.php?mod=hotel&act=tuijian&cid='+id+'&r='+Math.random( ),function(e){
        _g('tagcontent').innerHTML=e;
    });
}
function v1(){
    var objs=_g('tags').getElementsByTagName('li');
    for(var i=0;i<objs.length;i++){
        objs[i].onclick=function(){
            for(var k=0;k<objs.length;k++){
                objs[k].className='';
            }
            this.className='selectTag';
            v(this.id);
            _g('tagcontent1').innerHTML="<div style=\"margin: 110px auto; width: 100px;\"><img src=\"freeuch/image/ajax-loader.gif\"/></div>";
        }
    }
    objs[0].onclick();
}
function ckorder(){
    if(_g('mobile').value!=''&&_g('oname').value!=''){
        return true;
    }else{
        alert('请填入手机号或姓名');
        return false;
    }
}
